// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-12-30

#ifndef __ASYNC_UPDATEROOM_H_SERVER_SVR_MAIN__
#define __ASYNC_UPDATEROOM_H_SERVER_SVR_MAIN__

#pragma once

#include "tm_updateroom.h"

namespace JoyServer
{

class CJoyMainServer;
class CJoyTmUpdateRoom;

class CJoyAsyncUpdateRoom : public CJoyAsyncObject
{
public:
    class CRoomInfo
    {
    public:
        UINT    m_roomId;
        UINT    m_userNow;
    };
public:
    CJoyMainServer* m_server;

    virtual void OnExecute();
    CJoyAsyncUpdateRoom(CJoyTmUpdateRoom* tmUpdate)
    {
        m_server = tmUpdate->m_server;
    }
};



} // namespace JoyServer

#endif  // __ASYNC_UPDATEROOM_H_SERVER_SVR_MAIN__